//
//  HCComicViewController.swift
//  HappyComics
//
//  Created by 金玉龙 on 15/11/24.
//  Copyright © 2015年 jinyulong. All rights reserved.
//

import UIKit

class HCComicViewController: HCViewController ,HCScrollTitleViewDelegate{
    var scrollContentView : HCScrollContentView = HCScrollContentView.init(frame: CGRectMake(0, 0, kScreenWidth, kScreenHeight))
    
    override func viewDidLoad() {
        super.viewDidLoad()
        let titelArray = ["精品","搜索","更新","分类","排行"]
        let viewArray = [UIView.init(),UIView.init(),UIView.init(),UIView.init(),UIView.init()]
        scrollContentView.initScrollContentViewWithArray(titelArray, viewArray: viewArray, selectedIndex: 0)
        self.title = "首页"
        self.view .addSubview(scrollContentView)
        
        
    
        
        // Do any additional setup after loading the view.
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
    
    func titleView(scrollTitleView: HCScrollTitleView, didSelectedIndex index: Int) {
        
    }
    
    /*
    // MARK: - Navigation

    // In a storyboard-based application, you will often want to do a little preparation before navigation
    override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {
        // Get the new view controller using segue.destinationViewController.
        // Pass the selected object to the new view controller.
    }
    */

}
